﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace University.Workshop.Model
{
    [Table("CollectControl")]
    public class CollectControl
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int64 CollectId { get; set; }
        public DateTime? CollectPayDate { get; set; }

        public DateTime DateGenerated { get; set; }
        public short CollectType { get; set; }
        public decimal PaymentAmount { get; set; }
        public bool IsPaid { get; set; }

        [ForeignKey("User")]
        public string UserId { get; set; }
        public virtual User User { get; set; }

        [ForeignKey("Kardex")]
        public int KardexId { get; set; }
        public virtual Kardex Kardex { get; set; }

        [NotMapped]
        public string Estructura { get; set; }
    }
}
